import {defineConfig} from 'vite'
import vue from "@vitejs/plugin-vue";
import path from "path";

export default defineConfig(() => {
    return {
        build: {
            outDir: "../src/main/resources/static",
            chunkSizeWarningLimit: 2048
        },
        resolve: {
            alias: {
                // 键必须以斜线开始和结束
                '/@/': path.resolve(__dirname, './src')
            }
        },
        plugins: [vue(),],
        server: {
            port: 8050,
        },
    }
})


